package com.example.demo.dao;

import com.example.demo.entity.CC;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface CCRepository extends JpaRepository<CC, Integer> {

    @Query(value = "select * from cc where ccno=:ccno", nativeQuery = true)
    CC findByCcno(@Param("ccno") String ccno);
}
